<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends AuthController {
    public function index(){
        $this->sessions=M('blog_admin')->where(array('aid'=>$_SESSION['name']))->find();
        $this->display();
    }
    public function logout(){
        session('name',null);
        $this->redirect('Login/Login');
    }
}